<?php
namespace app\admin\validate;

use think\Validate;

class SmsTemplate extends Validate {
	
    protected $rule = [
        'title'     => 'require',
        'sign_name' => 'require',
        'tid'       => 'require|unique:sms_template',
        'content'   => 'require'
    ];

    protected $message = [
        'title.require'    => '请输入模板应用场景',
        'sign_name.unique' => '请输入短信签名',
        'tid.require'      => '请输入模板ID',
        'tid.unique'     => '模板ID已存在',
        'content.require'  => '请输入模板内容'
    ];
}
